﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RFMobile
{
    public partial class optionMachines : Form
    {
        private Int32 id_machine;

        public optionMachines(Int32 id)
        {
            id_machine = id;
            InitializeComponent();
            this.ShowDialog();
        }

        private void menuItem3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void menuItem4_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void menuItem1_Click(object sender, EventArgs e)
        {
            if (ingresarRadioButton.Checked)
            {
                newOperationScreen newOp = new newOperationScreen(id_machine);
                newOp = null;
            }

            if (verRadioButton.Checked)
            {
                historyScreen histOp = new historyScreen(id_machine);
                histOp = null;
            }
        }

        private void ingresarRadioButton_Click(object sender, EventArgs e)
        {
            statusBar1.Text = "Realizar una mantención.";
            menuItem1.Enabled = true;
        }

        private void verRadioButton_Click(object sender, EventArgs e)
        {
            statusBar1.Text = "Ver las mantenciones.";
            menuItem1.Enabled = true;
        }

        private void optionMachines_Load(object sender, EventArgs e)
        {
            statusBar1.Text = "Elija una opcion...";
        }
    }
}